package com.smartconns.ssc.server;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

/**
 * Created by kevin on 16-11-4.
 */
@Configuration
@EnableAutoConfiguration
@EnableJpaRepositories(basePackages = "com.smartconns.ssc.dao")
@ComponentScan(basePackages = "com.smartconns.ssc")
@EntityScan(basePackages = "com.smartconns.ssc.model")
@EnableDiscoveryClient
@EnableGlobalMethodSecurity
public class AuthApplication {
    public static void main (String [] args) {
        SpringApplication.run(AuthApplication.class, args);
    }
}
